package csu.web.credit_bank.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import csu.web.credit_bank.pojo.Auditor;
import com.baomidou.mybatisplus.extension.service.IService;
import csu.web.credit_bank.pojo.vo.CreditCertificationVo;
import csu.web.credit_bank.utils.Result;

public interface AuditorsService extends IService<Auditor> {
    Auditor createAuditor(Auditor auditor);
    Auditor getAuditorById(String userId);
    Auditor updateAuditor(Auditor auditor);
    boolean deleteAuditor(String userId);

    // 新增：获取待审核的学分认证申请列表
    // 此处修改：返回类型改为 IPage<CreditCertificationVo>
    Result<IPage<CreditCertificationVo>> getPendingCertifications(int page, int size);
    Result auditCertification(String certificationId, int auditStatus, String auditorId, Integer credits, String userId);
    Result<IPage<CreditCertificationVo>> getPendingCourseCertifications(int page, int size);
}